<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>拉萨市财政局投资评审管理系统  </title>
    <link rel="stylesheet" href="css/style.css">
    <script src="js/jquery-1.10.2.min.js"></script>
</head>
<body>
<!--main-header start-->
<div class="main-header">
    <div class="w-1200 clearfix">
        <div class="header-logo fl"><a href=""><img src="images/logo.png"></a> </div>
        <!--header-person start-->
        <div id="head_login"></div>
        <script type="text/javascript">
          
          $("#head_login").load("login_common.html");
        </script>
        <!--header-nav start-->
        <div class="header-nav fr">
            <ul class="nav">
                <li class="on"><a href="/exptindex.html">待审核项目</a> </li>
                <li><a href="/exptindex2.html">已审核项目</a> </li>
                <span id="art"></span>
                <script>$("#art").load("artcommon.html")</script>
            </ul>
        </div>
        <!--header-nav end-->
    </div>
</div>
<!--main-header end-->
<!--head-search start-->
<div id="mainbox">
    <div id="sbox"></div>

    <script>$("#sbox").load("search.html");</script>


<!--head-search end-->
<script src="js/jquery.selectlist.js"></script>
<script type="text/javascript">
    
</script>
<div id="mainbox">
<!--project-list start-->
<div class="project-list w-1200">
    <!--project-list-head start-->
    <div class="project-list-head clearfix">
        <div class="project-list-li w-110 fl">立项文号</div>
        <div class="project-list-li w-200 fl">项目名称</div>
        <div class="project-list-li w-130 fl">所属业主</div>
        <div class="project-list-li w-130 fl">评审类别</div>
        <div class="project-list-li w-130 fl">行业分类</div>
        <div class="project-list-li w-130 fl">提交时间</div>
        <div class="project-list-li w-130 fl">状态</div>
        <div class="project-list-li w-160 fl">操作</div>
    </div>
    <!--project-list-head end-->
    <!--project-list-item start-->
   <div id="list"></div>
    <!--project-list-item end-->
    <!--main-pages start-->
    <div class="main-pages" id="pgcon">
        
    </div>
    <!--main-pages end-->
</div>
</div>
<script src="js/auth.js"></script>
<script>
function loadpage(p){
    var owner = getQueryString2("owner");
    var lxnumber = getQueryString2("lxnumber");
    var name = getQueryString2("name");
    var wtdw = getQueryString("wtdw");
    var industry = getQueryString2("industry");
    var addtime = getQueryString("addtime")+ " 00:00:00";
    var bzjg = getQueryString("bzjg");
    var lxr = getQueryString2("wtdwlxr");
    var pslb=getQueryString2("pslb");
    $.get("/api/jg/list?page="+p+"&owner="+owner+"&lxnumber="+lxnumber+
        "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&addtime="+addtime+"&industry="+industry+"&pslb="+pslb,function(res){
        var list = "";
        $.each(res.result.list,function(k,v){
            var st = null;
            switch(v.status){
                case 3:
                    st="待审核";
                    break;
            }
            var link = null;

            console.log(loginuser);

            

            var link ="";


            if(v.isleader == true && v.canapprove==true){
                var link="/groupcheck.html?id="+v.id;
               
            }else{
                if(loginuser.type == 4){
                    link = HTTP_HOST+`experdetail.html?id=`+v.id;
                console.log(link);
            }else{

                link = HTTP_HOST+`expdetail.html?id=`+v.id;
            }
        }





    list+=`<div class="project-list-item clearfix">
     <div class="project-list-li w-110 fl">`+v.lxnumber+`</div>
     <div class="project-list-li w-200 fl">`+v.name+`</div>
     <div class="project-list-li w-130 fl">`+v.owner+`</div>
     <div class="project-list-li w-130 fl">`+v.type+`</div>
     <div class="project-list-li w-130 fl">`+v.industry+`</div>
     <div class="project-list-li w-130 fl">`+timestampToTime(v.addTime)+`</div>
    <div class="project-list-li w-130 fl"><span class=" color-blue">`+st+`</span> </div>
     <div class="project-list-li w-160 fl">
     <a class="project-list-but" href=`+link+`>立即审核</a></div> </div>`;
        });


        $("#list").html(list);

        $("#pgcon").html(res.result.pg);

    });


}




loadpage(1);
  function jumpage(p,size){
        loadpage(p);
    }

    function search(){
        var owner = $("#owner").val();
        var lxnumber = $("#lxnumber").val();
        var name = $("#name").val();
        var wtdw = $("#wtdw").val();
        var bzjg = $("#bzjg").val();
        var addtime = $("#addtime").val();
        var industry = $("#industry").val();
        var lxr = $("#wtdwlxr").val();
        var pslb = $("#pslb").val();
        // loadpage(1,owner);
        window.location.href="/exptindex.html?owner="+owner+"&lxnumber="+lxnumber+
        "&name="+name+"&wtdw="+wtdw+"&bzjg="+bzjg+"&industry="+industry+"&wtdwlxr="+lxr+"&pslb="+pslb;
   
    }



</script>


</body>
</html>
